package com.douyang.controller;

import cn.dev33.satoken.annotation.SaCheckRole;
import com.douyang.dto.CreateVideoDTO;
import com.douyang.dto.GetReviewListDTO;
import com.douyang.base.model.PageResult;
import com.douyang.base.model.Result;
import com.douyang.vo.VideoAndImageUrlVO;
import com.douyang.service.ReviewVideoInfoService;
import com.douyang.vo.ReviewVideoInfoVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xiaoma
 * @since 2025-02-27
 */
@RestController
@RequestMapping("/video/review")
public class ReviewVideoInfoController {
    @Autowired
    private ReviewVideoInfoService reviewVideoInfoService;


    @PostMapping("/createVideo")
    public Result<String> createVideo(@RequestBody @Validated CreateVideoDTO createVideoDTO) {
        reviewVideoInfoService.createVideo(createVideoDTO);
        return Result.success("ok");
    }

    @PostMapping("/getNotListVideoInfo")
    public Result<PageResult<ReviewVideoInfoVO>> getNotListVideoInfo(@RequestBody GetReviewListDTO getReviewListDTO) {
        return Result.success(reviewVideoInfoService.getNotListVideoInfo(getReviewListDTO));
    }


}
